﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAO
{
    public static class KhachHangDAO
    {
        public static List<KHACHHANG> layDSKH()
        {
            QL_HuongRungEntities db = new QL_HuongRungEntities();
            List<KHACHHANG> arrKH = db.KHACHHANG.ToList();
            return arrKH;
        }

        public static KHACHHANG layKH(int maKH)
        {
            QL_HuongRungEntities db = new QL_HuongRungEntities();
            KHACHHANG kh =  db.KHACHHANG.Find(maKH);
            return kh;
        }
    }
}
